package com.scm.biz.dao;

import java.util.List;

import com.scm.biz.bean.OrderPattern;
import com.scm.biz.result.OrderPatternResult;

public interface OrderPatternDao {
    int deleteByPrimaryKey(Long id);

    int insert(OrderPattern record);

    int insertSelective(OrderPattern record);

    OrderPattern selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderPattern record);

    int updateByPrimaryKeyWithBLOBs(OrderPattern record);

    int updateByPrimaryKey(OrderPattern record);
    
    public List<OrderPatternResult> selectListByOrderId(Long orderId);
    
    public OrderPatternResult selectById(Long id);
    
    /**
     * 根据id查询设计稿
     * @param id
     * @return
     */
    OrderPatternResult selectByPatternId(Long id);
}